//
//  ViewController.m
//  StudyDrive
//
//  Created by 蔡欣东 on 15/8/25.
//  Copyright (c) 2015年 蔡欣东. All rights reserved.
//

#import "ViewController.h"
#import "SelectView.h"
#import "FirstViewController.h"

@interface ViewController (){
    SelectView* _selectView;
    __weak IBOutlet UIButton *selectBtn;
}

@end

@implementation ViewController
- (IBAction)click:(UIButton *)sender {
    switch (sender.tag) {
        case 100:
        {    [UIView animateWithDuration:0.0 animations:^{
                _selectView.alpha = 1;
            }];
        }
            break;
        case 101://科目一
        {   UIBarButtonItem *item = [[UIBarButtonItem alloc]init];
            item.title = @"";
            self.navigationItem.backBarButtonItem = item;
            [self.navigationController pushViewController:[[FirstViewController alloc]init] animated:YES];
              }
            break;

    }
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    _selectView = [[SelectView alloc]initWithFrame:self.view.frame andBtn:selectBtn];
    _selectView.alpha = 0;
    [self.view addSubview:_selectView];

    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
